package com.egao.common.module.cooperative.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 产教融合 项目
 * @author lym
 */
@ApiModel(description = "产教融合 项目")
@Data
@TableName("cooperative_project")
public class CooperativeProject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("项目名称")
    private String title;

    @ApiModelProperty("项目状态 0进行中 1结束")
    private String state;

    @ApiModelProperty("单位ID")
    private Integer companyId;

    @ApiModelProperty("导师ID")
    private Integer teacherId;

    @ApiModelProperty("点击量")
    private Integer hits;

    @ApiModelProperty("封面图")
    private String img;

    @ApiModelProperty("项目介绍")
    private String content;

    @ApiModelProperty("添加人")
    private Integer createBy;
    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
    private Date createTime;
    @ApiModelProperty("编辑时间")
    private Date updateTime;
    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("单位名称")
    @TableField(exist = false)
    private String companyName;

    @ApiModelProperty("导师名称")
    @TableField(exist = false)
    private String teacherName;

}
